// store/moduleStore.js
import {defineStore} from 'pinia';
import tool from "@/utils/tool";

export const useModuleStore = defineStore('moduleStore', () => {
	const moduleId = ref(tool.data.get('CURRENT_MENU_MODULE_ID') || '');
	const setModuleId = (newId) => {
		moduleId.value = newId;
		tool.data.set('CURRENT_MENU_MODULE_ID', newId);
	}
});
